/*
 * @Author: xuxu12138 1718324422@qq.com
 * @Date: 2024-07-17 15:53:57
 * @LastEditors: xuxu12138 1718324422@qq.com
 * @LastEditTime: 2024-09-04 15:07:41
 * @FilePath: /things-admin/src/base/api/Brainwave.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import {request} from '@/base/Request';
import {brainwave} from '../model/Brainwave'


// 查询脑波数据 /api/brainwave-report/fetch
export const brainwaveFetch = (params:{
    pageIndex:number,
    pageSize:number,
}) => request.get(brainwave, `/api/brainwave-report/fetch?pageIndex=${params.pageIndex}&pageSize=${params.pageSize}&sortDirection=DESC`)

// 根据id查询脑波数据 /api/brainwave-report/{id}
export const brainwaveReport = (id:number) => request.get(brainwave, `/api/brainwave-report/complete/${id}`)